import request from '@/utils/request'

// 查询家庭视频列表
export function listFamilyVideo(query) {
  return request({
    url: '/member/familyVideo/list',
    method: 'get',
    params: query
  })
}

// 查询家庭视频详细
export function getFamilyVideo(id) {
  return request({
    url: '/member/familyVideo/' + id,
    method: 'get'
  })
}

// 新增家庭视频
export function addFamilyVideo(data) {
  return request({
    url: '/member/familyVideo',
    method: 'post',
    data: data
  })
}

// 修改家庭视频
export function updateFamilyVideo(data) {
  return request({
    url: '/member/familyVideo',
    method: 'put',
    data: data
  })
}

// 删除家庭视频
export function delFamilyVideo(id) {
  return request({
    url: '/member/familyVideo/' + id,
    method: 'delete'
  })
}
